package com.zyx.javademo.basic;

/**
 * @author Yaxi.Zhang
 * @since 2021/5/24 09:57
 * desc: Switch测试类
 */
public class SwitchDemo {
    public static void main(String[] args) {
        String env = getEnv();
        switch (env) {
            case "dev":
                System.out.println("dev");
                break;
            case "test":
                System.out.println("test");
                break;
            case "pro":
                System.out.println("pro");
                break;
            default:
                System.out.println("other");
                break;
        }
    }

    public static String getEnv() {
        return "dev";
    }


}
